#ifndef LEFTWIDGET_H
#define LEFTWIDGET_H

#include <QWidget>
#include <QHBoxLayout>
#include <QVBoxLayout>
#include "../BaseWidgets/FramelessWidget.h"
#include "SearchWidget.h"
#include "PatientListWidget.h"
#include "PatientManagerWidget_global.h"

namespace UserManagementSystem {
class PATIENTMANAGERWIDGET_EXPORT LeftWidget : public FramelessWidget
{
public:
    LeftWidget(UserManagementSystem::UserRepository* repository,QWidget* parent=nullptr);

private:
    ///@brief 布局
    void InitDedaultLayout();

    ///@brief 样式
    void InitDefaultStyle();

private:
    //主布局
    QVBoxLayout* m_mainLayout=nullptr;

    //搜索框
    UserManagementSystem::SearchWidget * m_topSearchWidget=nullptr;

    ///@brief 搜索框下方的患者列表窗口
    UserManagementSystem::PatientListWidget* m_bottomPatientListWidget=nullptr;
};

}

#endif // LEFTWIDGET_H
